﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface ITransferLensOrderService
    {
        /// <summary>
        /// 镜种转换单窗体
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<TransferLensOrderResponse>> Query(PageRequest<TransferLensOrderRequest> request);
        /// <summary>
        /// 获取id的镜种转换单详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<TransferLensOrderResponse> Detail(long id);
        /// <summary>
        /// 镜种转换单保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        /// <exception cref="ApiException"></exception>
        Task<TransferLensOrderResponse> Save(TransferLensOrderSaveRequest request, bool isCheck = false);
        /// <summary>
        /// 镜种转换单审核
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task Check(long[] ids);
        /// <summary>
        /// 镜种转换单弃审
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task UnCheck(long[] ids);
        /// <summary>
        /// 镜种转换单完成
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        //Task Complete(long[] ids);
        // <summary>
        /// 镜种转换单取消
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task Cancel(long[] ids);
        /// <summary>
        /// 获取镜种转换单主要信息列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<TransferLensOrderMainInfoResponse>> GetTransferLensOrderMainInfos(PageRequest<TransferLensOrderRequest> request);
    }
}
